<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
   	<section class="content">
       <div class="row">
			<div class="col-md-12">
			
			<div class="box box-info">
                <div class="box-header with-border">
                  <h3 class="box-title">添加其他费用</h3>
                  <a href="{:U('Order/other_cost')}" data-toggle="tooltip" title="" class="btn btn-default pull-right" data-original-title="返回"><i class="fa fa-reply"></i></a>
                </div>
                <form class="form-horizontal" action="{:U('Order/add_otherCost')}" method="post">
                  <div class="box-body">
                    <div class="form-group">
                      <label for="technology" class="col-sm-2 control-label">技术难度</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" class="form-control" name="technology" id="technology">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                   <div class="form-group">
                      <label for="package" class="col-sm-2 control-label">包装费用</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" class="form-control" name="package" id="package">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="manage" class="col-sm-2 control-label">管理费用</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" class="form-control" name="manage" id="manage">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="transport" class="col-sm-2 control-label">运输费用</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" class="form-control" name="transport" id="transport">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="cycle" class="col-sm-2 control-label">周期费用</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" name="cycle" id="cycle" class="form-control">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="check" class="col-sm-2 control-label">第三方检测费用</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" name="check" id="check" class="form-control">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="tax" class="col-sm-2 control-label">税费</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" id="tax" name="tax" class="form-control">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="profit" class="col-sm-2 control-label">利润</label>
                      <div class="col-sm-3">
                        <div class="input-group">
					      <input type="text" name="profit" id="profit" class="form-control">
					      <div class="input-group-addon">%</div>
					    </div>
                      </div>
                    </div>
                    <div class="form-group">
                    	<label class="control-label col-sm-2"></label>
                    	 <div class="col-sm-3">
                    	 	<button type="reset" class="btn btn-default">重置</button>
                    	  	<button type="button" id="upload" class="btn btn-info pull-right">提交</button>
                    	  	
                    	 </div>
                    </div>
                  </div>
                </form>
              </div>

          </div>
	   </div>
	</section>
</div>

<!--错误提示框-->
<div class="modal fade bs-example-modal-sm" id="myModal_error" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">
      	  <h4 id="tips" class="text-center"></h4>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-danger btn-block" data-dismiss="modal">确认</button>
      </div>
    </div>
  </div>
</div>

<!--成功提示框-->
<div class="modal fade bs-example-modal-sm" id="myModal_success" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">
      	  <h4 class="text-center">操作成功!</h4>
      </div>
      <div class="modal-footer">
      	
      	<a href="http://www.jiejiangpt.com/index.php/Admin/Order/skip/order_sn/{$order[0]['order_sn']}" type="button" class="btn btn-success btn-block" >确认</a>
     <!-- <a href="http://jj.we777.cc/index.php/Admin/Order/skip" type="button" class="btn btn-success btn-block" >确认</a>-->
    
      </div>
    </div>
  </div>
</div>

<script type="text/javascript">
	
	$('#upload').on('click',function(){
		var formDate = $('form').serializeArray();
		$.each(formDate, function(i,v) {
			if(v.value == ''){
				$('#myModal_error').modal('show');
				$('#tips').html('内容不能为空!');
				return false;
			}else {
				$('form').submit();
			}
		});
	})
	
</script>
</body>
</html>